﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SimpleCalculator.aspx.cs" Inherits="WebSimpleCalculator.SimpleCalculator" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label runat="server" AssociatedControlID ="firstNumberTextBox">First number:</asp:Label>
        <asp:TextBox ID="firstNumberTextBox" runat="server"></asp:TextBox>
        <asp:Label runat="server" AssociatedControlID ="secondNumberTextBox">Second number:</asp:Label>
        <asp:TextBox ID="secondNumberTextBox" runat="server"></asp:TextBox>

        <asp:RadioButtonList ID="operation" runat="server">
            <asp:ListItem Value = "1">*</asp:ListItem>
            <asp:ListItem Value= "2">/</asp:ListItem>
            <asp:ListItem Value="3">+</asp:ListItem>
            <asp:ListItem Value="4">-</asp:ListItem>
        </asp:RadioButtonList>

        <asp:Button ID="Calculate" Text ="Calculate" runat="server" 
            onclick="Calculate_Click" />
    </div>

    <asp:Literal Mode="Encode" ID="result" runat="server"></asp:Literal>
    </form>
</body>
</html>
